#pragma once
#include "Collection.h"
#include "Object.h"
#include "View.h"
#include "Enemy.h"

class Controler
{
private:
	View *viewObject;
	Collection<SpaceShip> Friends;
	Collection<InteractiveObject> Enemies;
	Collection<BaseObject> StaticObjects;
	static Controler * handler;
	static void TimerFunction(int d);
	static bool Limiter;
	//temp
	int spawnCounter;
	int spawnDelay;
	Enemy templateEnemy;
public:
	static int globalKills;
	Controler(){handler = this;};
	static void Action(void);
	void Start(int argc, char **argv);
	void InitializeObjects();
	void TestForColisions();
	void MoveEnemies();	
	void SpawnEnemies();
};